AIOSEO\Plugin\Common\Tools\RobotsTxt B

Total Complexity 93
Dependencies 2
Dependents 2
Total lines 616
Lines of code 338
Logical lines of code 196
Comment lines 192
Methods 20
Properties 1

Methods 20

Method Rating Maintainability Complexity Lines of code
extractRules()
A
45 12 44
prepareRobotsTxt()
A
50 11 29
mergeRulesHelper()
A
51 9 23
stringifyRuleset()
S
53 7 23
importPhysicalRobotsTxt()
S
53 6 22
buildRules()
S
55 5 20
sanitizeDirectiveValue()
S
59 5 14
groupRulesByUserAgent()
S
59 5 14
mergeRules()
S
56 4 18
deletePhysicalRobotsTxt()
S
58 4 15
checkForPhysicalFiles()
S
51 3 26
importRobotsTxtFromUrl()
S
55 3 19
__construct()
S
67 4 7
importRobotsTxtFromText()
S
59 3 14
hasPhysicalRobotsTxt()
S
62 3 12
extractSitemapUrls()
S
61 3 11
getDefaultRobotsTxtContent()
S
62 2 11
rewriteRulesExist()
S
68 2 7
getSitemapRules()
S
72 1 5
parseRule()
S
73 1 4